package com.augmentum.oes.viewmodel;

import java.util.ArrayList;
import java.util.List;

import com.augmentum.oes.model.Pagination;
import com.augmentum.oes.model.Question;

public class QuestionListModel {

    private String sort;
    private String keyWord;
    private Pagination pagination;
    private List<Question> questions = new ArrayList<Question>();

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getKeyWord() {
        return keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }

    public Pagination getPagination() {
        return pagination;
    }

    public void setPagination(Pagination pagination) {
        this.pagination = pagination;
    }

    public List<Question> getQuestions() {
        return questions;
    }

    public void setQuestions(List<Question> questions) {
        this.questions = questions;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("QuestionListModel [sort=");
        builder.append(sort);
        builder.append(", keyWord=");
        builder.append(keyWord);
        builder.append(", pagination=");
        builder.append(pagination.toString());
        builder.append(", questions=");
        builder.append(questions.toString());
        builder.append("]");
        return builder.toString();
    }

}
